package com.loooooo.pm2024.exception;

public class MyException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public int code; 
	public Object data;
	public MyException(int code, String message, Object data) {
		super(message);
		this.code=code;
		this.data=data; 
	}
	public static MyException create(int code, String message, Object data) {
		return new MyException(code,message,data);
	}
	public static MyException throwMe(int code, String message, Object data) {
		throw new MyException(code,message,data);
	}
}
